// switch 示例
package main

import "fmt"

func main() {
	i := 10
	switch i {
	case 1:
		fmt.Printf("i is equal to %d", i)
	case 2, 3, 4:
		fmt.Printf("i isequal to %d", i)
	case 10:
		fmt.Printf("i is equal to %d", i)
	default:
		fmt.Println("All I know is that i is an integer")
	}
}